<!-- 系统自动生成 Date:2021-08-31 22:02 -->
<#include "/common/defaultEngine.html"/>
<@pageTheme mark="${config.optimize()?string('true', 'false')}">
<@header title="新增数据库测试" bodyClass="white-bg" libs=["bootstrapSelect"]/>
<div class="wrapper wrapper-content ibox-content">
<@f.form id="form-test-add"  class="form-horizontal">
    <div class="form-group">
        <label class="col-sm-3 control-label">
        ${i18n("姓名"/>：
        </label>
        <div class="col-sm-8">
            <@f.input name="name"  />
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label">
        ${i18n("电子邮件"/>：
        </label>
        <div class="col-sm-8">
            <@f.input name="email"  />
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label">
        ${i18n("电话"/>：
        </label>
        <div class="col-sm-8">
            <@f.input name="phone"  />
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label">
        ${i18n("remark"/>：
        </label>
        <div class="col-sm-8">
            <@f.input name="remark"  />
        </div>
    </div>
</@f.form>
</div>
<@footer>
<script type="text/javascript">
    var prefix = baseURL + "mssql/test"
    /**表单验证*/
    <@compress single_line=true>
    $("#form-test-add").validate({
        focusCleanup: true
    });
    </@compress>

    function submitHandler() {
        if (opt.validate.form()) {
            opt.operate.save(prefix + "/add", $('#form-test-add').serialize());
        }
    }
</script>
</@footer>
</@pageTheme>